DEMO 5: Let's see how to place our commands INSIDE the if statement!

Commands in an if statement MUST be indented 4 spaces to make your program run. You can use your mouse to place the cursor in the editor. Then, use the spacebar to move the line of code to the right.

  • Click Run and follow the directions on stage to see how to use the tab button.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)